package com.minglead.springboot.platform.sys.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.minglead.springboot.common.crud.CrudService;
import com.minglead.springboot.common.persistence.Page;
import com.minglead.springboot.platform.sys.dao.LogDao;
import com.minglead.springboot.platform.sys.entity.Log;



/**
 * 日志Service
 */
@Service
@Transactional(readOnly = true)
public class LogService extends CrudService<LogDao, Log> {

	public Page<Log> findPage(Page<Log> page, Log log) {
	
		return super.findPage(page, log);
		
	}
    /**
     * 删除日志
     * @param 日志id
     * @return
     */
	@Transactional(readOnly=false)
	@SuppressWarnings("deprecation")
	public void delete(String id) {
	    dao.delete(id);
	}
}
